// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
import axios from 'axios'
Vue.config.productionTip = false
//将axios挂载到vue的原型对象上，使vue的this能直接调用$http从而发送ajax请求
Vue.prototype.$http=axios
axios.defaults.baseURL='https://element.eleme.cn/#/zh-CN/component/form'
Vue.use(ElementUI)
/* 引入element */
/* eslint-disable no-new */
new Vue({
  router,//把路由挂载给vue实例
  render: h => h(App)
}).$mount('#app')
